package com.ruoyi.system.service.impl;

import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.xcx.DouyinBasicmemberPrice;
import com.ruoyi.system.mapper.DouyinBasicmemberPriceMapper;
import com.ruoyi.system.service.IDouyinBasicmemberPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 基础会员商品最终价格Service业务层处理
 *
 * @author ruoyi
 * @date 2023-11-02
 */
@Service
public class DouyinBasicmemberPriceServiceImpl implements IDouyinBasicmemberPriceService
{
    @Autowired
    private DouyinBasicmemberPriceMapper douyinBasicmemberPriceMapper;


    /**
     * 查询基础会员商品最终价格
     *
     * @param id 基础会员商品最终价格主键
     * @return 基础会员商品最终价格
     */
    @Override
    public DouyinBasicmemberPrice selectDouyinBasicmemberPriceById(Long id)
    {
        return douyinBasicmemberPriceMapper.selectDouyinBasicmemberPriceById(id);
    }

    /**
     * 查询基础会员商品最终价格列表
     *
     * @param douyinBasicmemberPrice 基础会员商品最终价格
     * @return 基础会员商品最终价格
     */
    @Override
    public List<DouyinBasicmemberPrice> selectDouyinBasicmemberPriceList(DouyinBasicmemberPrice douyinBasicmemberPrice)
    {
        return douyinBasicmemberPriceMapper.selectDouyinBasicmemberPriceList(douyinBasicmemberPrice);
    }

    /**
     * 新增基础会员商品最终价格
     *
     * @param douyinBasicmemberPrice 基础会员商品最终价格
     * @return 结果
     */
    @Override
    public int insertDouyinBasicmemberPrice(DouyinBasicmemberPrice douyinBasicmemberPrice)
    {
        return douyinBasicmemberPriceMapper.insertDouyinBasicmemberPrice(douyinBasicmemberPrice);
    }

    /**
     * 修改基础会员商品最终价格
     *
     * @param douyinBasicmemberPrice 基础会员商品最终价格
     * @return 结果
     */
    @Override
    public int updateDouyinBasicmemberPrice(DouyinBasicmemberPrice douyinBasicmemberPrice)
    {
        return douyinBasicmemberPriceMapper.updateDouyinBasicmemberPrice(douyinBasicmemberPrice);
    }

    /**
     * 批量删除基础会员商品最终价格
     *
     * @param ids 需要删除的基础会员商品最终价格主键
     * @return 结果
     */
    @Override
    public int deleteDouyinBasicmemberPriceByIds(Long[] ids)
    {
        return douyinBasicmemberPriceMapper.deleteDouyinBasicmemberPriceByIds(ids);
    }

    /**
     * 删除基础会员商品最终价格信息
     *
     * @param id 基础会员商品最终价格主键
     * @return 结果
     */
    @Override
    public int deleteDouyinBasicmemberPriceById(Long id)
    {
        return douyinBasicmemberPriceMapper.deleteDouyinBasicmemberPriceById(id);
    }

    @Override
    public int deleteDouyinBasicmemberPriceByGoodIds(String goodIds) {
        return douyinBasicmemberPriceMapper.deleteDouyinBasicmemberPriceByGoodIds(goodIds);
    }
}
